package com.ucar.umock.client.config;

import com.ucar.umock.client.enums.EnumMockExectorType;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName UMockMethodConfigBean
 * @Description TODO
 * @Author zhanbs baoshan.zhan@ucarinc.com
 * @Date 2020/4/2 15:16
 * @Version 1.0
 **/
@Data
@Builder
public class UMockMethodConfigBean implements Serializable {
    private static final long serialVersionUID = 6026387214498811111L;

    private String key;

    private String className;

    private String classMockName;

    private String methodName;

    private String methodMockName;

    private boolean mockSwitch=false;


    /**
     * 处理类型
     * @return
     */
    private EnumMockExectorType handleType;


    /**
     * processType=1(固定简单类型值) 时指定
     *
     * @return
     */
    private String fixedValue;

    /**
     * processType=
     *  FIXED_SIMPLE_ARRAY(3,"固定简单类型数组"),
     *  FIXED_SIMPLE_VALUE_FROM_RANDOM_ARRAY(4,"固定数组中随机获取一个值"),
     *  指定数组
     * @return
     */
    private String[] fixedArray;

    /**
     * 自定义Process，需要指定，本地自定义实现
     *  processType=
     *  CUSTOM_HANDLE(98,"本地自定义Handle处理")
     *
     * @return
     */
    private String customHandle;

}
